import { useRouter } from "vue-router";
export default function routerPage() {
  const router = useRouter();
  /**
   * 跳转到登录页
   */
  const loginPage = () => {
    router.push({
      path: "/signup",
    });
  };
  /**
   * 跳转到首页
   */
  const homePage = () => {
    router.push({
      path: "/index",
    });
  }
  /**
   * 跳转到个人中心页
   */
  const personalCenterPage = () => {
    router.push({
      path: "/institutionPersonalCenter",
    });
  }
  return {
    loginPage,
    homePage,
    personalCenterPage
  }
}